find all permutations of string